package com.platform.springcloud.controller;

import com.platform.springcloud.entity.Application;
import com.platform.springcloud.service.ApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Application")
public class ApplicationController {

    @Autowired
    private ApplicationService applicationService;

    @GetMapping("/getById")
    public Application getName(@RequestParam("id") Long id) {
        return applicationService.getById(id);
    }

}
